Update Comment
AutomatR.Jira.Activities.UpdateComment
The "Update Comment" activity in AutomatR's Jira package uses the Jira API to update a specific comment for a particular issue. This activity enhances collaboration and communication by allowing you to modify existing comments associated with Jira issues.
Properties
Type | Description |
---|---|
Input | |
Comment | The comment text you wish to add to an Issue. This field supports only strings or String variables. |
Comment ID | The comment text you wish to get from an Issue ID. This field supports only strings or String variables. |
Ticket ID | The Ticket ID of the Issue. This field supports only strings or String variables. |
Ticket Key | The Ticket Key of the Issue. This field supports only strings or String variables. |
Misc | |
Display Name | The display name of the activity. This field supports only strings or String variables. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Update Comment" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | A Comment object. This field supports only Comment variables. The variable you create for this property can be used as an input variable in subsequent activities (e.g., Delete Comment). |
How to use:
- Drag and drop the "Update Comment" activity onto the workflow.
- Configure the properties by providing the Ticket ID or Ticket Key, Comment ID, and the updated comment text.
- Optionally, configure the delay.
- Execute the workflow to update the specified comment for the Jira issue.
Example: Consider an example where the "Update Comment" activity is used to modify an existing comment for a Jira issue:
Update Comment:
Ticket ID: "JRA-123"
Comment ID: "456"
Comment: "This is the updated comment text."
Result: updatedComment
In this example, the activity updates the comment with ID "456" for the Jira issue with Ticket ID "JRA-123". The updated comment text is provided, and the result of the operation is stored in the variable "updatedComment" for further handling in the workflow.